package io;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        try (Writer writer = new FileWriter("D:/test.txt", true)) {
            writer.write("你好");
        }
    }
}

